home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Education / PC-SiG's World of Education.iso / run / 3126 / install.bat < prev    next >
Encoding:
DOS Batch File  |  1991-10-31  |  2.6 KB  |  82 lines

  1. echo off
  2. cls
  3. if %1a == a: goto WHATDRIVE
  4. if %1b == b: goto WHATDRIVE
  5. if %1 == c: goto START
  6. if %1 == C: goto START
  7. if %1 == d: goto START
  8. if %1 == D: goto START
  9. if %1 == e: goto START
  10. if %1 == E: goto START
  11. if %1 == f: goto START
  12. if %1 == F: goto START 
  13. goto NOTDRIVE
  14. :START
  15. echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  16. echo *                                                                       *
  17. echo *                    Word Hunt Hard Disk Installation                   *
  18. echo *                                                                       *
  19. echo * This will create a directory called %1\WORDH on your hard disk,       *
  20. echo * and will install Word Hunt and it's files in that directory.          *
  21. echo *                                                                       *
  22. echo * If you don't want Word Hunt installed at this time, press Ctrl + C.   *
  23. echo *                                                                       *
  24. echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  25. echo 
  26. pause
  27. cls
  28. echo Making directory %1\WORDH . . .
  29. if exist %1\WORDH\*.* goto EXISTS
  30. md %1\WORDH
  31. :CHECK
  32. if exist WH.EXE goto CONTINUE
  33. echo 
  34. echo Place the disk containing Word Hunt and it's files in active drive.
  35. echo 
  36. pause
  37. goto CHECK
  38. :CONTINUE
  39. echo 
  40. echo Copying Word Hunt and it's files . . .
  41. copy GO.BAT %1\WORDH
  42. copy INSTALL.BAT %1\WORDH
  43. copy WH.EXE %1\WORDH
  44. copy DIRECTRI.TXT %1\WORDH
  45. copy *.WHL %1\WORDH
  46. if not exist %1\WORDH\WH.EXE goto INSTALLERROR
  47. if not exist %1\WORDH\DIRECTRI.TXT goto INSTALLERROR
  48. if not exist %1\WORDH\INSTALL.BAT goto INSTALLERROR
  49. cd %1\WORDH
  50. echo 
  51. echo Word Hunt is installed on your hard disk.  To run it, type WH.
  52. %1
  53. echo 
  54. goto DONE
  55. :WHATDRIVE
  56. cls
  57. echo Installation Error:  To install Word Hunt on your hard disk, you
  58. echo must include the drive as part of the install command.  For example,
  59. echo to install Word Hunt on drive C, type INSTALL C: and press Enter.
  60. goto ERRORQUIT
  61. :NOTDRIVE
  62. cls
  63. echo Installation Error: The hard drive letter can be a letter from C to F,
  64. echo For example, INSTALL C: will install Word Hunt on drive C.  You must
  65. echo include a colon after the drive letter.
  66. goto ERRORQUIT
  67. :INSTALLERROR
  68. cls
  69. echo Installation Error: Do you have enough space on your hard disk?
  70. echo Did you give the proper hard drive letter?
  71. goto ERRORQUIT
  72. :EXISTS
  73. cls
  74. echo Installation Error: WORDH Directory already exists on this drive.
  75. echo Delete this directory and all files in it, then try installing again.
  76. goto ERRORQUIT
  77. :ERRORQUIT
  78. echo 
  79. echo Word Hunt was not installed correctly.
  80. echo 
  81. :DONE
  82.